function ccR_Priest_3()
	if ccrPlayerLevel() >= 10 and ccrPlayerLevel() <= 90 then ccR_Priest_Shadow_10_90() end
end

function ccR_Priest_Shadow_10_90()
	-- Remove Angelic Feather AoE circle
	if SpellIsTargeting() == 1 then SpellStopTargeting() end
	if ccrPlayerIsChannelingSpell(MIND_SEAR) then return end

	-- Player is under level 21, No Orbs can be used
	if not ccrPlayerHasSpell(SHADOW_ORBS) then
		-- Inner Fire
		ccR_Priest_Inner_Fire()
		-- Talents
			-- 15
			ccR_Priest_Void_Tendrils()
			ccR_Priest_Psyfiend()

		-- Scream away any mobs after the player
		ccR_Priest_Psychic_Scream()

		-- SW:P > Mind Flay
		ccR_Priest_Shadow_Word_Pain()
		ccR_Priest_Shadow_Word_Pain_All()

		-- Power Word: Shield
		ccR_Priest_Power_Word_Shield()

		ccR_Priest_Shadow_Mind_Flay()
	end
	-- Player is over level 21, Orbs can be used
	if ccrPlayerHasSpell(SHADOW_ORBS) then
		-- Buffs
		ccR_Priest_Inner_Fire()
		ccR_Priest_Shadowform()
		ccR_Priest_Power_Word_Fortitude()
		-- Talents
			-- 15
			ccR_Priest_Void_Tendrils()
			ccR_Priest_Psyfiend()
			-- 30
			ccR_Priest_Angelic_Feather()
			-- 45
			ccR_Priest_From_Darkness_Comes_Light()
			ccR_Priest_Mindbender()
			-- 60
			ccR_Priest_Desperate_Prayer()
			-- 75
			ccR_Priest_Power_Infusion()
			-- 90
			ccR_Priest_Cascade()
			ccR_Priest_Divine_Star()
			ccR_Priest_Halo()

		-- Survival
		ccR_Priest_Prayer_Of_Mending()

		-- Debuffing
		ccR_Priest_Silence()
		ccR_Priest_Silence_Anyone()
		ccR_Priest_Shadowfiend()
		ccR_Priest_Psychic_Scream()
		ccR_Priest_Power_Word_Shield()

		-- Rotation
		ccR_Priest_Shadow_Word_Death()
		ccR_Priest_Shadow_Word_Death_Anyone()

		ccR_Priest_Mind_Sear()
		if not ccrTargetIsBoss() then
			ccR_Priest_Vampiric_Touch_All()
			ccR_Priest_Shadow_Word_Pain_All()
		end

		ccR_Priest_Shadow_Word_Pain()
		ccR_Priest_Devouring_Plague()
		ccR_Priest_Vampiric_Touch()
		ccR_Priest_Mind_Blast()
		ccR_Priest_Shadow_Mind_Flay()
	end	
end